alphabet = ['a','b','c']
print(alphabet)

print(alphabet[0])
print(alphabet[-1])

alphabet.append('d')
print(alphabet)

alphabet[0] = 'd'
print(alphabet[0])

alphabet.insert(0,'a')

del alphabet[1]

alphabet.append('e')

alphabet.pop()

alphabet.append('f')

first_alphabet = alphabet.pop(0)

print(first_alphabet)

alphabet.remove('b')

print(alphabet)



# 排序

numbers = [2,44,6,0,234,67]

print('len',len(numbers))

# 临时排序
print(sorted(numbers))
print(numbers)

numbers.reverse()
print('reverse=',numbers)


numbers.sort()
print(numbers)

numbers.sort(reverse=True)
print(numbers)



